package com.zxisl.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by ade on 2016/10/18.
 */
@Controller
public class WeiboController {
        //这里要中注解方式，先是业务，再是跳转
        @RequestMapping( "/weibo.action")
        public String getHome(HttpServletRequest request){
            System.out.println(request.getRequestURI());
            return "index";
        }
}
